"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.bulkInsert(
      "Suggestions",
      [
        {
          stuCode: '201931773318',
          name: '张三',
          stuCode: '201931773318',
          anonymous:1,
          type: 2,
          title:'测试留言sssssssss',
          content:'这是测试留言的内容ssssssssssssssssssssss',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          stuCode: '201931773318',
          name: '张三',
          stuCode: '201931773318',
          anonymous:0,
          type: 2,
          title:'测试留言aaaaaaa',
          content:'这是测试留言的内容aaaaaaa',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          stuCode: '201931773318',
          name: '张三',
          stuCode: '201931773318',
          anonymous:1,
          type: 3,
          title:'测试留言2222',
          content:'这是测试留言的内容22222',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          stuCode: '201931773318',
          name: '张三',
          stuCode: '201931773318',
          anonymous:1,
          type: 1,
          title:'测试留言',
          content:'这是测试留言的内容',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
      ],
      {}
    );
  },

  async down(queryInterface, Sequelize) {
    await queryInterface.bulkDelete("Suggestions", null, {});
  },
};
